﻿namespace Dcms.BLL
{
    using Dcms.IDAL;
    using Dcms.Model;
    using System;
    using System.Collections.Generic;

    public class Dcms_NewsBLL
    {
        private IDcms_NewsDAL nOp = Dcms.DALFactory.DALFactory.CreateDcms_News();

        public Dcms_NewsModel AddModel(Dcms_NewsModel model)
        {
            return this.nOp.AddModel(model);
        }

        public bool CopyNews(int SourceCateID, int DestCateID)
        {
            return this.nOp.CopyNews(SourceCateID, DestCateID);
        }

        public bool DeleteAllCheck(string AllID)
        {
            return this.nOp.DeleteAllCheck(AllID);
        }

        public void DeleteModelByID(int ID)
        {
            this.nOp.DeleteModelByID(ID);
        }

        public string GetDataCount(string SqlStr)
        {
            return this.nOp.GetDataCount(SqlStr);
        }

        public IList<Dcms_NewsModel> GetDataListByPage(string SqlStr, int CurPage, int PageSize)
        {
            return this.nOp.GetDataListByPage(SqlStr, CurPage, PageSize);
        }

        public Dcms_NewsModel GetModelByID(int ID)
        {
            return this.nOp.GetModelByID(ID);
        }

        public Dcms_NewsModel GetNewModelByCatID(int CatID)
        {
            return this.nOp.GetNewModelByCatID(CatID);
        }

        public bool MoveNews(int SourceCateID, int DestCateID)
        {
            return this.nOp.MoveNews(SourceCateID, DestCateID);
        }

        public Dcms_NewsModel Update(Dcms_NewsModel model)
        {
            return this.nOp.Update(model);
        }

        public void UpDateCount(int ID)
        {
            this.nOp.UpDateCount(ID);
        }

        public bool UpdateState(string AllID, int StateValue)
        {
            return this.nOp.UpdateState(AllID, StateValue);
        }
    }
}

